//filename: t_cacl.c
#include <stdio.h>
#include "t_cacl.h"

int cacl(int run_times)
{
    printf("func(cacl) cacl func\n");
    int a;
    for (a = 0; a < run_times; a++) {
		printf("run (%d) times\n", a);
		distance(a + 1, a + 3, a * a, a * 2);
    }
    return 0;
}

static int distance(int x1, int y1, int x2, int y2)
{
	int x3;
	int y3;
	x3 = x1 - x2;
	y3 = y1 - y2;
	return x3 + y3;
}
